package com.ssm.hj.service;

import com.github.pagehelper.PageInfo;
import com.ssm.hj.page.Page;
import com.ssm.hj.search.MenuSearch;
import com.ssm.hj.view.MenuView;
import com.ssm.pojo.Menu;

import java.util.List;

public interface MenuService {
    //根据用户查询角色具有的菜单
    List<MenuView> queryUserByIdService(int userId) throws Exception;
    //阿杰 查询子级菜单
    PageInfo<Menu> queryMenuChildAllService(Page<MenuSearch> page) throws Exception;
    //阿杰 查询父级菜单
    List<Menu> queryMenuParentAll() throws Exception;
    //阿杰 修改菜单状态
    int updateMenuStateService(int id,int state) throws Exception;
}
